Fix a stupid bug in BasicSerializer where the assignment operator was not returning a value.