Expression parser: simplified vector-length and type checking/promotion.
Cleaned up testparser and added more test expressions.