Fix memory leak
Improve speed and quality when it comes to POST body generation.
Significant speed improvement in removing nulls + other minor speed enhancements incurred by creating arrays and dicts with an initial size.