Refactor decorateScoreUnderObject, add helpers for getting type sigs and aliases.