Issue #4: extend the range of serialisable types

Primitives, lists of primitives and single objects are now serialisable!