Update lib/transformer.js

If input is of type number then 0 values should be treated as numeric value rather than null.