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