Fix ext() with function array bug