Fixes for returning better error in parser if namespace is invoked twice.