Register pojo with spark's kryo