Correct name extraction of examples

Fix #223 (panics when executing godoc example)