Update coap_opt_filter_t to be a structure rather than a 16bit array that is aliased with the real structure format. Update code to use pointers where appropriate.