added support for nil and boolean types