Updates to work with Activiti 5.12 engine and include fix to avoid using custom serializer on primitive object class types