add CellReplacement to combine lhs/rhs. minor perf improvement
refactor cell replacement into CellPattern, convert parseInt to constants (for perf)
make tests more flexible by checking for object names instead of bitmasks