chore(gulp): fix pages build
fix(select): properly parse scope values/functions (fixes #711)