Type-safe writePoints using Proxy