Support functions for sourceMapIn

Add support to use a function for sourceMapIn, just like sourceMap and sourceMappingURL.