64 bit LoomScript fixes