%ignore not applied to the nested classed, because "nested" flag is set too late