Follow rustc changes: Various fixes due to std api stabilization

After a recent change in rustc it's neccessary to terminate item macro invocations with a semicolon or wrap it in braces.

This pull request makes serde and serde2 working again on rust nightly.