Fixed bug in optional that caused implicit casts to ints.