Added V2 class for Vector functions.
Fixed Entity.set_layer.