SIP-18: enable feature warnings, explicitly import advanced language features

features are imported the innermost scope that needs them. I thought it's closer to the SIP-18 spirit than importing them at the top of the source file. If you prefer to keep the imports at the top, I'll redo the change.
If there are no objections I'll merge this PR tomorrow.