Added new common function wpp_array_merge_nested
Updated multiple files to use the new merge function
Fixed various bugs