Stricter default codecs

bug

Default codecs will now throw if they receive input payloads that are not null, number or number arrays for encoding.