Call get_layer instead of layers->[] (more efficient now that layers() recreates the array).
Merge branch 'call_get_layer' of github.com:sapir/Slic3r into sapir-call_get_layer

Conflicts:
	lib/Slic3r/Print.pm
Merge branch 'sapir-call_get_layer'
Fix tests