(Bug 5163) Fallback to default when ?skin= doesn't exist

Also use $class->default instead of $class->[0] (clearer) and make sure
we don't auto-vivify when looking up the inheritance stack.