Allow null or undefined as nil for some boolean.rb methods