Make ECPoint instances Java serializable. Add serialization tests.

THIS PR IS NOT MEANT TO BE MERGED YET.

Rather, I want to gather an opinion if you would be willing to merge it generally. I will add serialization tests for each class hierarchy that I have made serializable.