array_merge_recursive() does weird stuff when merging objects and scalars