Add serializes for integer and float types