Category serializer modification is behaving differently in 2.4.0

Thanks a lot, @sam for fixing this quickly.

@angus. Will our plugin work without the recent changes we made due to this fix?