Dock for Nexus 4 and LG WCP300 wireless charger (parameterized)

I got fed up with my Nexus 4 phone sliding out of position on its WCP300 wireless charger, so I decided to build something to keep them together.
I didn't want something to hold the phone at an angle, as I never use it in that way; it's just there for charging. This dock holds the phone fairly loosely so it can be lifted in and out without binding.
The dock was designed using OpenSCAD, and is parameterized, so can easily be adapted for other phones and wireless chargers (as long as the charger is round!). Apologies for the scruffy code - I simply wanted to get a one-off job done. :-)