Improve performance of compilation of predicate clauses and grammar rules passed as arguments to the `create_object/4` and `create_category/4` built-in predicates