Nil conversions

This fixes a bug where nil values were not being cast to fixnums or floats.