fixed: const_defined does not work with namespaced models #2004