added fixes for instnace not working in MtoA 0.24.0+

Fix for detecting with the new API if the current node is an instance and generating a ginstance as a result.