Add definitions for functions that act on numbers and comparables

This will get moved into Elm code eventually