added merge array capabilities and also utility method for generating object ID