- Cap string repeat to MAX_STRING_SIZE (1MB) to prevent DoS via integer overflow
- Consolidate duplicated string*number/number*string repeat blocks into helper
- Add parser depth counter (limit 512) to prevent stack overflow from nested parens/unary chains
- Add evaluator depth counter (limit 512) to prevent stack overflow during eval
- Add EvalError type for evaluation-time errors
- Add test cases for all security fixes