methods.common.serialize() fix. Closes #148.