use passed settings in allocation instead of instance's to avoid bugs
also checks on end of allocation that passed settings and current ones
are the same. Closes #2809
Merge branch 'master' of https://github.com/openframeworks/openFrameworks.git into VS2013