Fix a bug when calling resolution functions
Fix parsing of subtype_indication with resolution function
Ensure sem_check_resolution is always called for resolved subtypes