Support bool arguments in functions

Change-Id: I8b3dbaa5a68d1979ca21b547aef418371662c761
Merge "Support bool arguments in functions"