sys: use globals for the ELF kernel and module type strings
Initialize the globals with macros so we can use the same values in the
loader.
Also remove unnecessary "elfN module" checks.
Reviewed by: imp, kib
Pull Request: https://github.com/freebsd/freebsd-src/pull/1394