Made layer type parsing more permissive.