Fix AutoTypeExpression
- adjust includes
- add errortype return value (instead of assert(0))