Fixed issue with var reference names in get_resource() call in Layer.store_type property function