Thanks Andrew for your quick response and clear explanation.
Can I understand from your explanation this is not considered as a bug?
Although the adding a qualified reference workarounds the problem, it forces to write pl code that is aware of the schema it is going to be imported in. How could I write this code to be schema agnostic, so I can import it in any schema without modifying it?