Use the types returned with the prepare

This struck me as the easy way to make this just work. Let me know if
there's something wrong with this approach I'm missing
missed a spot
treat undefined like null

makes working with records easier
Merge pull request #18 from layerhq/develop

Use the types from prepare for execute