Improve support for external functions

Fix https://github.com/fsprojects/VisualFSharpPowerTools/issues/354