layers: Add allocator to layer init functions

Conflicts:
	layers/shader_checker.cpp
8 files changed