Fix vertex_format macro not working in modules

Fix #176