Implement backtick (repr)

Please carefully review this patch because I touched a lot of areas which I'm very unfamiliar with.