Add info about passed options in error message on API serialization