When resolving an enum, resolve it using resolveModuleDeclaration
Enums that have multiple declarations require all but the first enum to provide an initializer on the first element.
Small renames for clarity.
Revert "Update tests"

This reverts commit 43065a0b8909a76dfede5a16cd578e0990b14a2d.
Check both containers and types when resolving a type name