[issue #86] Fix namespaces rules for constants/functions in global scope