Fix triggering an enforcement for Version.INVALID.
Fix handling of targetType none packages and automatically treat packages with no source files as targetType none.