fix bug in with_absolute_references
move default NAMESPACE_MAPPINGS to base_constants from example_logic_tier