allow namespaced object to be defined as variable

variable : "myNamespace.util.template" will now work and define object and sub object properly