Serializer improvements for dependencies