Fix bug where the `number_of_clauses/1` property would also be returned for dynamically created entities