Support stdclass instances, e.g. for empty maps via (object)[]