Cleanups and support empty keys by ArrayUtils::setByPath