Provides common functionality surrounding value de/serialization as required by both PSR-6 and PSR-16