bugfix in clone()
added hasGlobal()
added pass dynamic parameters for layered object draw
Merge heaps main