allow class assignment to null on allocation

WIP importc typedef