Fixes #4 - dictionary serialization.