Updated initializer to handle arrays of type 'uid'

Updated initializer to handle arrays of type ‘uid’ rather than resulting in a ClassCastException.