Split lwm2m_tlv_t::type in flags and the real type.

Signed-off-by: David Navarro <david.navarro@intel.com>