Added tuple implementation, for safe key serialization