layers: Make sure we deref pointers to counts
layers: Make sure we deref pointers to counts

For functions that can return a count of elements, be sure to
dereference that pointer when looping over the array.

KhronosGroup/Vulkan-Tools,KhronosGroup/Vulkan-Tools,KhronosGroup/Vulkan-Tools,KhronosGroup/Vulkan-Tools