Generalize the `logtalk` object methods `compile_predicate_indicators/3` and `compile_predicate_heads/4`, allowing them to be called with an entity argument other than a loaded entity or the entity under compilation