extract names in lhs of instance declarations