Add support for prettifying getter and setter literals

Pull request for https://bugzilla.mozilla.org/show_bug.cgi?id=964706.

r? @benvie