Fix two bugs of the inliner discovered by partests