Parser bugfix (type resolution)