type: use native byteorder(9) implementation

This is a prerequisite for NetBSD support as <sys/endian.h> is
somehow pulled via some intermediate header file.  While there,
make FreeBSD behave the same way and make sure that native
peak_type(3) functions are used in the accompanying base test.