Fix bool type check in GsxObject