Implemented custom merge function instead of using jQuery.extend(true). Removed workarounds for prevented deep merging of arrays. Closes #1552.