make it work with arrays
makes missing objects work better
fixes arrays
can warn
check if dot in key
cleaned up code