Move resolve(..) helper to Type.fromAbstract(..).

Since we will need something like this in the type-checker as well.

Not very nice with passing the error list as parameter like this,
but it's only inside the method that we know the actual type
identifier, and I can't think of a better approach right now.