Add supports for function in buildType

Add supports for functions in `buildType`.

`buildType: function () {return this.appVersion;}`

I haven't found test for buildType and since it's kinda trivial I didn't wrote any.