Added GetInstanceHash to remove duplicated code.
Renamed getGlueDataInstance to getGlueDataInstanceAddress and added new getGlueDataInstance to reflect the difference between void * and GVariant.