Homework would be abolished for primary school pupils and exams phased out in secondaries under 'madcap' proposals unveiled by the Scottish Greens.