BUG: Indexes were not being fully escaped 

This fix enhances the namespace escaping to cover the entire index. Previously the parent table name was being escaped, but if the relational table was also to a namespaced class then it would trigger an error.