Omit calling #expires= when #max_age= is going to be called.
Cookie#max_age= should not reset #expires when it fails.
Cookie#origin=: Add a comment to explain why @origin is set the last.