Removed unnecessary passing of options & customizer variables since they are already accessible.
Added tests for passing the serializer as both a factory reference as well as an instance.