Updated UC array handling and condensed unary functions