Added interfaces and implementations for encoding instructions.
The encode/decode of decimal and datetime into a predicate object works.