Allow sized maps

Just like `gen/vector`. I've also added a tiny test for this generator, if this gets merged, I'll probably write up more generator tests - they're super easy to write.