Recursively getting all unique keys. Populating missing keys before export.

Signed-off-by: Joshua Paling <joshua.paling@gmail.com>