I found issue in accessing my custom content type properties set from a custom task edit form back in the workflow. It was so that I was unable to access one of my field in the afterproperties method. It may happen to some of your properties but not all.
Resolution: The trick here is to set the task properties suffixed with some value to ensure that you get it back as it is in the workflow.
Follow this blog post for details: