added general object abstract serializer, and put methods to create a
Parameters object manually.