Add convenience methods for encoding lone NSNumbers.