Fixed serialization for tables with numbers as keys