Allow objects in foxway as function	(version 0.5.1)

Change-Id: Iaf35d2492c38a590cf35b96d71f1b86acf7f283f