Suggestions for filter encoding

There shouldn't be any need to call `ol.expr.parse` from within the library.  Instead, we can build expressions directly with the constructors.

One more change related to parsing distance literals as `number`.  Now ready for review.