Make Quantities pickleable again

fixes #1324