Fix some private type in public signature warnings.
auto merge of #2102 : jdm/servo/warnings, r=metajack