Add serialisation code for required types.
- Locking travis to stackage.
issue: #1