Fixed bug that prevented rules being parsed into DeclarationContextIF objects from being closed and optimized.